package org.example.test;

/**
 * @Author : zhangbo
 * @data : 2024/7/10
 * @description :  值传递  入参传递的仅仅是一个值
 */
public class test1 {
    static void changeInt(int num) {
        num = 100;
        System.out.println(num);
    }
    public static void main(String[] args) {
        int originalNum = 10;
        changeInt(originalNum);
        // originalNum 的值仍然是 10
    }
}
